#include <stdio.h>

float sum_elements(float a[], int length){
	int i;
	float result = 0;

	for(i = 0; i <= length-1; i++){
		result += a[i];
	}
	return result;
}

int main(){
	int a[] = {1,2,3,4,5};
	printf("%f", sum_elements(a,0));
	return 0;
}
